const mysql = require('mysql')
// 创建数据库连接
const db = mysql.createPool({
	host:'localhost',
	user:'xiaoyi',
	password:'yixing..',
	database:'nodeapi'
})
// 对外暴露数据库
module.exports = db